Repository navigation
chore(deps): update dependency ty to v1.1.0 - #1965
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.0.0→==1.1.0Release Notes
astral-sh/ty (ty)
v1.1.0Compare Source
Released on 2026-12-03.
Bug fixes
invalid-assignmentfor unsupported item or slice assignments even after a check such asout is not Nonenarrows anobject. (#30011)pkusing the underlying field’s write type, including Django expressions where the field accepts them. On the model class,pkhas typeproperty, so accessing a primary-key value attribute such asBook.pk.hexreportsmissing-attribute. (#31269)<field>_idwhento_fieldnames another relation. If the field is also the primary key,pkgets the same ID type. (#31268)NewTypewhen a protocol uses a method whose return annotation isSelf. For example,ExitStack.enter_contextnow returns the wrapped context manager’sNewTypewhen its__enter__returnsSelf. (#31211)NewTypewraps a class, including enum values, attributes supplied by a metaclass, and assignment types from dataclass field converters. Protocol checks use those types too. (#31234)nameandvalueattributes using Python’s override rules, including cases where an inheritedenum.propertysupplies the value or a bare annotation leaves the generated property in place. (#31234)NewTypebased onobjectcan hold unhashable values, including through nestedNewTypes. The negative branch of anisinstance(value, Hashable)check remains reachable, and unions withHashableretain both alternatives. (#31232)cyclic-class-definitionfor every class that participates in overlapping inheritance cycles, regardless of the order of its base classes. (#31298)invalid-type-formwhen an IPython escape command such as!pwdappears where a type is expected in a notebook, preventing a crash. (#31238):=to bind a local variable with the same name as a slot. (#31150)LSP server
CLI
ty check --fixandty check --add-ignoreapply edits and recheck the project, with a separate indicator while writing changes. (#31147)Diagnostic improvements
mismatched-*-namediagnostics that make the supplied name match the assignment target.ty check --fixapplies fixes marked safe. Fixes for enums, named tuples, and sentinels are always marked unsafe. (#30628)Performance improvements
diagnosticModeset toopenFilesOnlyby reusing prior analysis. ty continues to report diagnostics only for open files. (#31252)dict[str, list[T]]faster by skippingParamSpecwork for types without callable signatures. (#31195)list’s type parameter. (#31173)tryblocks faster by skipping repeated work to determine what values can reach anexcepthandler when assignments and narrowing conditions are unchanged. (#31260)Memory usage improvements
Callable[[int], T]becomesCallable[[int], str]. (#31161)Core type checking
__path__at module scope usingfrom pkgutil import extend_path, including aliases forextend_pathorpkgutil. (#31274)struct.unpack_fromfrom a known format string. For example,struct.unpack_from("<I?", buf)returnstuple[int, bool]. (#31230)TypedDict.getresults for unions of known literal keys when the fields have identical declared types and are either all required or all optional. For optional fields, ty also uses the shared field type to infer defaults such as{}. (#30897)Self. (#29818)Other changes
uv add --dev types-PyYAMLas an example, and how ty automatically uses stub packages already installed for mypy. (#5207)Contributors
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.